package com.bjsxt.sm.users.pojo;

import java.util.Date;

public class Ausers
{
	private int id;
	private String email;
	private String password;
	private String phone;
	private String name;
	private String identity;   //身份证号
	private byte sex;
	private String address;
	private byte status;
	private Date createTime;
	private Date updateTime;
	
	/* 字符串的显示 */
	/* 性别的字符串描述 */
	private String sexstr;
	/* 状态的字符串描述 */
	private String statusstr; 
	public int getId()
	{
		return id;
	}
	public void setId(int id)
	{
		this.id = id;
	}
	public String getEmail()
	{
		return email;
	}
	public void setEmail(String email)
	{
		this.email = email;
	}
	public String getPassword()
	{
		return password;
	}
	public void setPassword(String password)
	{
		this.password = password;
	}
	
	
	public String getName()
	{
		return name;
	}
	public void setName(String name)
	{
		this.name = name;
	}
	public String getIdentity()
	{
		return identity;
	}
	public void setIdentity(String identity)
	{
		this.identity = identity;
	}
	public byte getSex()
	{
		return sex;
	}
	public void setSex(byte sex)
	{
		this.sex = sex;
	}
	public String getAddress()
	{
		return address;
	}
	public void setAddress(String address)
	{
		this.address = address;
	}
	public byte getStatus()
	{
		return status;
	}
	public void setStatus(byte status)
	{
		this.status = status;
	}
	public Date getCreateTime()
	{
		return createTime;
	}
	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}
	public Date getUpdateTime()
	{
		return updateTime;
	}
	public void setUpdateTime(Date updateTime)
	{
		this.updateTime = updateTime;
	}
	public String getPhone()
	{
		return phone;
	}
	public void setPhone(String phone)
	{
		this.phone = phone;
	}
	public String getSexstr()
	{
		AusersEnum[] usersEnum=AusersEnum.values();
		for (int i = 0; i < usersEnum.length; i++)
		{
			AusersEnum ausersEnum = usersEnum[i];
			if(ausersEnum.getSex()==this.sex && ausersEnum.toString().startsWith("SEX_"))
			{
				this.sexstr=ausersEnum.getInfo();
			}
		}
		return sexstr;
	}
	public void setSexstr(String sexstr)
	{
		this.sexstr = sexstr;
	}
	public String getStatusstr()
	{
		AusersEnum[] auserEnum=AusersEnum.values();
		for (int i = 0; i < auserEnum.length; i++)
		{
			AusersEnum ausersEnum = auserEnum[i];
			if(ausersEnum.getSex()==this.status && ausersEnum.toString().startsWith("STATUS_"))
			{
				this.statusstr=ausersEnum.getInfo();
			}
		}
		return statusstr;
	}
	public void setStatusstr(String statusstr)
	{
		this.statusstr = statusstr;
	}
	

}
